package mn.idax.exchange.otc.service;

import java.util.List;

import mn.idax.exchange.otc.domain.OTCBeneficiarysUpdateDisplayDTO;
import mn.idax.exchange.otc.entity.OTCBeneficiarys;
import mn.idax.exchange.otc.vo.BeneficiarysInfo;
import mn.idax.exchange.otc.vo.OTCBeneficiarysUpdateDisplay;
import mn.idax.exchange.otc.vo.PayMethodDetailDTO;

/**
 * @Auther: shihaiming
 * @Date: 2018/08/06
 * @Description: 收款账号信息
 */
public interface OTCBeneficiarysService {

	int addOTCBeneficiarys(OTCBeneficiarys otcBeneficiarys);
	
	List<OTCBeneficiarys> selectByUserID(Integer userId);
	
	OTCBeneficiarys selectByPrimaryKey(Integer id);
	
	int updateOTCBeneficiarys(OTCBeneficiarys otcBeneficiarys);

	OTCBeneficiarys getOTCBeneficiarysByuserIdAndDictItemId(Integer userId,Integer DictItemId);

	List<PayMethodDetailDTO> getPayMethodDetail(Integer adid);
	
	OTCBeneficiarys selectByUserIDAndType(OTCBeneficiarys record);

	List<OTCBeneficiarys> showDisplayBeneficiarys(Integer userId);

    Integer updateDisplay(OTCBeneficiarysUpdateDisplay OTCBeneficiarysUpdateDisplay);

    //获取支付方式包含图标和国际化
	List<BeneficiarysInfo> selectPayTypeInfoByUserID(Integer userId);


	/**
	 * 获取展示的收款方式的条数
	 */
	Integer getCountDisplayBeneficiarys(Integer userId);

	/**
	 * 删除收款方式
	 * @param id
	 * @return
	 */
	boolean deleteOTCBeneficiarys(Integer id);
}
